package com.rongc.client.freight.business.mine.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  设置支付密码
* */
public class PasswordPayApi extends AbsRequest<PasswordPayApi.PasswordPayParams, NullResult> {

    public PasswordPayApi(PasswordPayParams feedbackParams, Response.Listener<NullResult> listener, Response.ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getSetPaypwdUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class PasswordPayParams extends BaseParams {

        public PasswordPayParams(String mobile,String yzm,String id_card,String pay_pwd) {
            put("id", UniApplication.getInstance().getUserInfo().getUserId());
            put("mobile", mobile);
            put("yzm", yzm);
            put("id_card", id_card);
            put("pay_pwd", pay_pwd);
            put("pay_pwd1", pay_pwd);
        }
    }
}
